package cn.ycl.syslog;

/**
 * 操作类型枚举类
 *
 * @author yuanchangliang
 * @version V1.0
 * @since 2021-06-08 09:24
 */
public enum OperationEnum {
    LOG_IN(1, "登录操作"),
    USER_MANAGE(2, "用户管理"),
    ROLE_MANAGE(3, "角色管理"),
    OPERATION_RECORD(4, "操作记录"),
    KILL(5,"秒杀商城"),
    ORDER(6,"订单管理"),
    FILE(7,"文件上传"),
    AUTH(9, "授权操作"),
    MENU_MANAGE(11, "菜单管理"),
    PRODUCT_MANAGE(12, "产品管理"),
    CONFIG_MANAGE(13, "配置管理"),

    UNDEFINED(-1, "未定义")
    ;

    private Integer code;
    private String operationName;

    OperationEnum(Integer code, String operationName) {
        this.code = code;
        this.operationName = operationName;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getOperationName(){return this.operationName;}
}
